<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: toyking
  Date: 2017/8/25
  Time: 10:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<%--<form action="/result" method="post">--%>
<%--名字:<input name="name" type="text"> <br/>--%>
<%--年龄:<input name="age" type="number"> <br/>--%>
<%--<button type="submit">添加</button>--%>
<%--</form>--%>

<form:form action="result" method="post" modelAttribute="user">
    姓名：<form:input path="name" type="text"></form:input><br/>
    年龄：<form:input path="age" type="number"></form:input><br/>
    <form:button>提交</form:button>
</form:form>

</body>
</html>
